package com.atguigu.gmall.order.client;

import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author: 李旭
 * @Time: 15:13
 * @Description:
 */
@FeignClient(name = "service-order")
public interface OrderFeignClient {

    //查询商品清单
    //交易号
    //已经写在了用户微服务中了  本次就不写用户收货地址
    @GetMapping("/api/order/trade")
    public Map<String,Object> trade();

    //根据订单ID 查询订单对象
    @GetMapping("/api/order/getOrderInfo/{orderId}")
    public OrderInfo getOrderInfo(@PathVariable Long orderId);
}
